package com.example.myspringboot.design.singleton;

/**
 * @Author ZhengShan
 * @Date 2024 06 24 11 14
 **/
public class SingletonHungryDemo {

    private SingletonHungryDemo() {
    }

    private static final SingletonHungryDemo SINGLETON_HUNGRY = new SingletonHungryDemo();

    public static SingletonHungryDemo getInstance(){
        return SINGLETON_HUNGRY;
    }

}
